summaryrefslogtreecommitdiff
path: root/bridges
diff options
context:
space:
mode:
authorIvo Hinkelmann <ihi@openoffice.org>2008-04-24 15:25:52 +0000
committerIvo Hinkelmann <ihi@openoffice.org>2008-04-24 15:25:52 +0000
commit7c58c6a609e2a4b4a0aa47d8158912afb3d45347 (patch)
tree6e82bc8f5f82cf2f13ec4237d3a42ed8d85d95ee /bridges
parent7838740deb735653ec14c742d7d4f55cf10a109e (diff)
INTEGRATION: CWS sb85 (1.1.2); FILE ADDED
2008/03/12 10:51:26 sb 1.1.2.1: #i86117# Solaris SPARC64 bridge
Diffstat (limited to 'bridges')
-rw-r--r--bridges/source/cpp_uno/cc5_solaris_sparc64/flushcode.cxx54
1 files changed, 54 insertions, 0 deletions
diff --git a/bridges/source/cpp_uno/cc5_solaris_sparc64/flushcode.cxx b/bridges/source/cpp_uno/cc5_solaris_sparc64/flushcode.cxx
new file mode 100644
index 000000000000..a1d545245626
--- /dev/null
+++ b/bridges/source/cpp_uno/cc5_solaris_sparc64/flushcode.cxx
@@ -0,0 +1,54 @@
+/*************************************************************************
+ *
+ * OpenOffice.org - a multi-platform office productivity suite
+ *
+ * $RCSfile: flushcode.cxx,v $
+ *
+ * $Revision: 1.2 $
+ *
+ * last change: $Author: ihi $ $Date: 2008-04-24 16:25:52 $
+ *
+ * The Contents of this file are made available subject to
+ * the terms of GNU Lesser General Public License Version 2.1.
+ *
+ *
+ * GNU Lesser General Public License Version 2.1
+ * =============================================
+ * Copyright 2008 by Sun Microsystems, Inc.
+ * 901 San Antonio Road, Palo Alto, CA 94303, USA
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License version 2.1, as published by the Free Software Foundation.
+ *
+ * This library is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
+ * MA 02111-1307 USA
+ *
+ ************************************************************************/
+
+#include "precompiled_bridges.hxx"
+#include "sal/config.h"
+
+#include "doflushcode.hxx"
+#include "flushcode.hxx"
+
+namespace bridges { namespace cpp_uno { namespace cc5_solaris_sparc64 {
+
+void flushCode(void const * begin, void const * end) {
+ unsigned long n =
+ static_cast< char const * >(end) - static_cast< char const * >(begin);
+ if (n != 0) {
+ unsigned long adr = reinterpret_cast< unsigned long >(begin);
+ unsigned long off = adr & 7;
+ doFlushCode(adr - off, (n + off + 7) >> 3);
+ }
+}
+
+} } }