summaryrefslogtreecommitdiff
path: root/vcl/inc/unx/salunx.h
blob: a6333789982ef612dcbbf2222038f767fff7541c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
/*
 * This file is part of the LibreOffice project.
 *
 * This Source Code Form is subject to the terms of the Mozilla Public
 * License, v. 2.0. If a copy of the MPL was not distributed with this
 * file, You can obtain one at http://mozilla.org/MPL/2.0/.
 *
 * This file incorporates work covered by the following license notice:
 *
 *   Licensed to the Apache Software Foundation (ASF) under one or more
 *   contributor license agreements. See the NOTICE file distributed
 *   with this work for additional information regarding copyright
 *   ownership. The ASF licenses this file to you under the Apache
 *   License, Version 2.0 (the "License"); you may not use this file
 *   except in compliance with the License. You may obtain a copy of
 *   the License at http://www.apache.org/licenses/LICENSE-2.0 .
 */

#pragma once

#include <tools/long.hxx>

inline tools::Long Divide(tools::Long nDividend, tools::Long nDivisor)
{
    return (nDividend + nDivisor / 2) / nDivisor;
}

/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
08 Add missing tooltips to Media Playback toolbarGabor Kelemen 2017-10-09avmedia: consistently use "" and <> in include directivesMike Kaganski 2017-09-06loplugin:unnecessaryparen include case statementsNoel Grandin 2017-08-19convert WB_SLIDERSET to a bool fieldNoel Grandin 2017-07-21de-hrc various thingsCaolán McNamara 2017-07-21migrate to boost::gettextCaolán McNamara 2017-06-05clang-tidy performance-unnecessary-value-paramNoel Grandin 2017-05-19loplugin:stringcopy: avmediaStephan Bergmann 2017-05-19make string translation loading more uniformCaolán McNamara 2017-05-16loplugin:comparisonwithconstant in avmediaNoel Grandin 2017-04-25remove bitmaps from .src filesCaolán McNamara 2017-02-15Drop :: prefix from std in [a-b]*/Tor Lillqvist 2016-12-23unwind AVMEDIA_IMGLST/AVMEDIA_IMGLST_L ImageListsCaolán McNamara 2016-12-20Drop ListBox include from ComboBox headerJan-Marek Glogowski 2016-08-15tdf#87794: Media Playback PanelYousuf Philips