2 # Copyright 2020 The OpenSSL Project Authors. All Rights Reserved.
4 # Licensed under the OpenSSL license (the "License"). You may not use
5 # this file except in compliance with the License. You can obtain a copy
6 # in the file LICENSE in the source distribution or at
7 # https://www.openssl.org/source/license.html
10 package x86_64support;
12 # require "x86_64-support.pl";
13 # $ptr_size=&pointer_size($flavour);
14 # $ptr_reg=&pointer_register($flavour,$reg);
19 my $ptr_size=8; $ptr_size=4 if ($flavour eq "elf32");
23 sub ::pointer_register
26 if ($flavour eq "elf32") {
29 } elsif ($reg eq "%rbx") {
31 } elsif ($reg eq "%rcx") {
33 } elsif ($reg eq "%rdx") {
35 } elsif ($reg eq "%rdi") {
37 } elsif ($reg eq "%rsi") {
39 } elsif ($reg eq "%rbp") {
41 } elsif ($reg eq "%rsp") {