2 * This file is part of the LibreOffice project.
4 * This Source Code Form is subject to the terms of the Mozilla Public
5 * License, v. 2.0. If a copy of the MPL was not distributed with this
6 * file, You can obtain one at http://mozilla.org/MPL/2.0/.
8 * This file incorporates work covered by the following license notice:
10 * Licensed to the Apache Software Foundation (ASF) under one or more
11 * contributor license agreements. See the NOTICE file distributed
12 * with this work for additional information regarding copyright
13 * ownership. The ASF licenses this file to you under the Apache
14 * License, Version 2.0 (the "License"); you may not use this file
15 * except in compliance with the License. You may obtain a copy of
16 * the License at http://www.apache.org/licenses/LICENSE-2.0 .
24 const long add
= 1 + 2;
25 const long sub
= 3 - 2;
26 const hyper h
= 123456789;
27 const float f7
= 3.4123;
28 const float f2
= 3.4123 + 10e-12;
29 const boolean bt
= True
;
30 const boolean bf
= False
;
31 const boolean and
= bt
& bf
;
34 const short shortMax
= -0x8000;
36 const unsigned long longMax
= 0x80000000;
42 const long FLAG1
= 0x00000001;
44 const long FLAG2
= 0x00000002;
46 const long FLAG3
= 0x00000004;
48 const long FLAG4
= 0x00000008;
50 const long FLAG5
= 0x00000010;
52 const long FLAG6
= FLAG1
& FLAG2
;
54 const long FLAG7
= FLAG1 | FLAG2
;
56 const long FLAG8
= (FLAG1 | FLAG2
) & FLAG2
;
58 const long FLAG9
= FLAG1
<< 2;
60 const long FLAG10
= (FLAG5
>> 1) << 2;
62 const long FLAG11
= 33 % 4;
64 const long FLAG12
= FLAG10
/ 8;