Home | History | Annotate | Download | only in native
      1 /*
      2  * Copyright (C) 2011 The Android Open Source Project
      3  *
      4  * Licensed under the Apache License, Version 2.0 (the "License");
      5  * you may not use this file except in compliance with the License.
      6  * You may obtain a copy of the License at
      7  *
      8  *      http://www.apache.org/licenses/LICENSE-2.0
      9  *
     10  * Unless required by applicable law or agreed to in writing, software
     11  * distributed under the License is distributed on an "AS IS" BASIS,
     12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
     13  * See the License for the specific language governing permissions and
     14  * limitations under the License.
     15  */
     16 
     17 #include "Dalvik.h"
     18 #include "native/InternalNativePriv.h"
     19 
     20 static void Double_doubleToLongBits(const u4* args, JValue* pResult)
     21 {
     22     MAKE_INTRINSIC_TRAMPOLINE(javaLangDouble_doubleToLongBits);
     23 }
     24 
     25 static void Double_doubleToRawLongBits(const u4* args, JValue* pResult)
     26 {
     27     MAKE_INTRINSIC_TRAMPOLINE(javaLangDouble_doubleToRawLongBits);
     28 }
     29 
     30 static void Double_longBitsToDouble(const u4* args, JValue* pResult)
     31 {
     32     MAKE_INTRINSIC_TRAMPOLINE(javaLangDouble_longBitsToDouble);
     33 }
     34 
     35 const DalvikNativeMethod dvm_java_lang_Double[] = {
     36     { "doubleToLongBits",    "(D)J", Double_doubleToLongBits },
     37     { "doubleToRawLongBits", "(D)J", Double_doubleToRawLongBits },
     38     { "longBitsToDouble",    "(J)D", Double_longBitsToDouble },
     39     { NULL, NULL, NULL },
     40 };
     41