1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
3 * This file is part of the LibreOffice project.
5 * This Source Code Form is subject to the terms of the Mozilla Public
6 * License, v. 2.0. If a copy of the MPL was not distributed with this
7 * file, You can obtain one at http://mozilla.org/MPL/2.0/.
9 * This file incorporates work covered by the following license notice:
11 * Licensed to the Apache Software Foundation (ASF) under one or more
12 * contributor license agreements. See the NOTICE file distributed
13 * with this work for additional information regarding copyright
14 * ownership. The ASF licenses this file to you under the Apache
15 * License, Version 2.0 (the "License"); you may not use this file
16 * except in compliance with the License. You may obtain a copy of
17 * the License at http://www.apache.org/licenses/LICENSE-2.0 .
25 const long add
= 1 + 2;
26 const long sub
= 3 - 2;
27 const hyper h
= 123456789;
28 const float f7
= 3.4123;
29 const float f2
= 3.4123 + 10e-12;
30 const boolean bt
= True
;
31 const boolean bf
= False
;
32 const boolean and
= bt
& bf
;
35 const short shortMax
= -0x8000;
37 const unsigned long longMax
= 0x80000000;
43 const long FLAG1
= 0x00000001;
45 const long FLAG2
= 0x00000002;
47 const long FLAG3
= 0x00000004;
49 const long FLAG4
= 0x00000008;
51 const long FLAG5
= 0x00000010;
53 const long FLAG6
= FLAG1
& FLAG2
;
55 const long FLAG7
= FLAG1 | FLAG2
;
57 const long FLAG8
= (FLAG1 | FLAG2
) & FLAG2
;
59 const long FLAG9
= FLAG1
<< 2;
61 const long FLAG10
= (FLAG5
>> 1) << 2;
63 const long FLAG11
= 33 % 4;
65 const long FLAG12
= FLAG10
/ 8;
71 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */