bitmap4.cxx (ff0f521c) bitmap4.cxx (c1e8cc3a)
1/**************************************************************
2 *
3 * Licensed to the Apache Software Foundation (ASF) under one
4 * or more contributor license agreements. See the NOTICE file
5 * distributed with this work for additional information
6 * regarding copyright ownership. The ASF licenses this file
7 * to you under the Apache License, Version 2.0 (the
8 * "License"); you may not use this file except in compliance

--- 19 unchanged lines hidden (view full) ---

28#include <vos/macros.hxx>
29#include <vcl/bmpacc.hxx>
30#include <vcl/bitmap.hxx>
31
32// -----------
33// - Defines -
34// -----------
35
1/**************************************************************
2 *
3 * Licensed to the Apache Software Foundation (ASF) under one
4 * or more contributor license agreements. See the NOTICE file
5 * distributed with this work for additional information
6 * regarding copyright ownership. The ASF licenses this file
7 * to you under the Apache License, Version 2.0 (the
8 * "License"); you may not use this file except in compliance

--- 19 unchanged lines hidden (view full) ---

28#include <vos/macros.hxx>
29#include <vcl/bmpacc.hxx>
30#include <vcl/bitmap.hxx>
31
32// -----------
33// - Defines -
34// -----------
35
36#define S2(a,b) { register long t; if( ( t = b - a ) < 0 ) { a += t; b -= t; } }
36#define S2(a,b) { long t; if( ( t = b - a ) < 0 ) { a += t; b -= t; } }
37#define MN3(a,b,c) S2(a,b); S2(a,c);
38#define MX3(a,b,c) S2(b,c); S2(a,c);
39#define MNMX3(a,b,c) MX3(a,b,c); S2(a,b);
40#define MNMX4(a,b,c,d) S2(a,b); S2(c,d); S2(a,c); S2(b,d);
41#define MNMX5(a,b,c,d,e) S2(a,b); S2(c,d); MN3(a,c,e); MX3(b,d,e);
42#define MNMX6(a,b,c,d,e,f) S2(a,d); S2(b,e); S2(c,f); MN3(a,b,c); MX3(d,e,f);
43
44// ----------

--- 964 unchanged lines hidden ---
37#define MN3(a,b,c) S2(a,b); S2(a,c);
38#define MX3(a,b,c) S2(b,c); S2(a,c);
39#define MNMX3(a,b,c) MX3(a,b,c); S2(a,b);
40#define MNMX4(a,b,c,d) S2(a,b); S2(c,d); S2(a,c); S2(b,d);
41#define MNMX5(a,b,c,d,e) S2(a,b); S2(c,d); MN3(a,c,e); MX3(b,d,e);
42#define MNMX6(a,b,c,d,e,f) S2(a,d); S2(b,e); S2(c,f); MN3(a,b,c); MX3(d,e,f);
43
44// ----------

--- 964 unchanged lines hidden ---