Hanno Becker
7b628e5b88
Make mbedtls_ssl_read/write_version static inline
...
Reasons:
- If the transport type is fixed at compile-time,
mbedtls_ssl_read_version() and mbedtls_ssl_write_version()
are called with a compile-time determined `transport`
parameter, so the transport-type branch in their body
can be eliminated at compile-time.
- mbedtls_ssl_read_version() is called with addresses of
local variables, which so far need to be put on the stack
to be addressable. Inlining the call allows to read directly
into the registers holding these local variables.
This saves 60 bytes w.r.t. the measurement performed by
> ./scripts/baremetal.sh --rom --gcc
2019-07-12 15:15:07 +01:00
..
2019-04-24 10:52:45 +02:00
2018-04-05 15:37:38 +02:00
2018-04-17 10:00:21 -05:00
2018-12-19 12:51:00 +00:00
2019-06-25 10:41:34 +01:00
2019-02-11 21:13:33 +00:00
2019-06-25 09:10:57 +01:00
2018-12-19 12:52:59 +00:00
2018-12-19 13:42:05 +00:00
2019-04-24 10:51:54 +02:00
2019-05-30 10:58:12 +01:00
2019-04-24 10:51:54 +02:00
2018-12-18 15:30:30 +00:00
2019-06-25 09:10:57 +01:00
2019-06-25 09:10:57 +01:00
2018-06-27 10:51:47 +01:00
2019-07-01 11:25:42 +01:00
2018-11-26 19:26:22 +01:00
2019-06-25 09:10:57 +01:00
2019-04-24 10:51:54 +02:00
2019-05-30 10:58:12 +01:00
2019-02-22 12:51:51 +01:00
2019-01-10 10:52:08 +02:00
2019-02-18 14:50:57 +00:00
2019-04-24 10:51:54 +02:00
2019-04-24 10:51:54 +02:00
2018-11-06 13:12:47 +00:00
2018-04-17 10:00:21 -05:00
2019-07-01 11:25:42 +01:00
2018-12-19 17:32:19 +01:00
2019-04-24 10:51:54 +02:00
2018-07-23 10:34:47 -07:00
2018-11-26 19:26:22 +01:00
2019-07-01 11:25:42 +01:00
2018-04-17 10:00:21 -05:00
2019-04-24 10:52:53 +02:00
2019-04-24 10:52:45 +02:00
2018-01-22 11:54:42 +01:00
2018-04-17 10:00:21 -05:00
2018-06-12 16:56:04 +01:00
2019-07-03 10:31:46 +02:00
2018-12-20 12:15:40 +01:00
2019-06-18 11:05:44 +01:00
2018-06-12 18:25:09 +03:00
2018-10-15 15:27:49 +02:00
2018-12-20 12:37:13 +00:00
2018-10-16 13:39:40 +01:00
2018-10-16 13:39:40 +01:00
2019-06-18 11:31:59 +02:00
2018-12-19 17:03:28 +01:00
2018-12-11 12:28:56 +01:00
2018-10-11 11:04:20 +01:00
2019-04-24 10:51:54 +02:00
2019-04-24 10:51:54 +02:00
2018-10-09 16:36:53 +01:00
2018-12-20 12:37:13 +00:00
2019-04-24 10:52:45 +02:00
2019-04-24 10:52:45 +02:00
2019-04-24 10:52:53 +02:00
2019-07-08 11:23:24 +01:00
2019-07-08 11:23:25 +01:00
2019-07-12 15:15:07 +01:00
2018-04-17 10:00:21 -05:00
2019-07-12 15:15:07 +01:00
2019-06-03 09:51:08 +02:00
2019-07-12 15:15:07 +01:00
2018-09-06 12:09:56 +01:00
2019-06-20 16:33:02 +01:00
2019-07-03 10:31:46 +02:00
2019-06-25 09:10:57 +01:00
2019-06-25 09:10:57 +01:00
2019-07-03 10:31:46 +02:00
2019-06-25 09:10:57 +01:00
2019-07-03 10:31:46 +02:00
2019-06-25 09:10:57 +01:00
2019-06-25 09:10:57 +01:00
2018-04-17 10:00:21 -05:00